import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  // 债券转仓
  bondRollOver: (query) => api.post(`${config.interfaces.type1}rolloverTradeInstruction/rolloverBond`, query),

  // 基金转仓
  fundRollOver: (query) => api.post(`${config.interfaces.type1}FundTransfer/transfer`, query),

  // 回购转仓
  buybackRollOver: (query) => api.post(`${config.interfaces.type1}rolloverTradeInstruction/rolloverBank`, query),

  // 理财直融转仓
  finaFlockingRollOver: (query) => api.post(`${config.interfaces.type1}finaFlocking/transfer`, query),

  // 存款转仓
  DepositRollOver: (query) => api.post(`${config.interfaces.type1}deposit/ckTransfer`, query),

  // 非标转仓
  nonstandardRollOver: (query) => api.post(`${config.interfaces.type1}nonstandardAsset/transfer`, query),

  // 股票转仓
  stockRollOver: (query) => api.post(`${config.interfaces.type1}rolloverTradeInstruction/rolloverStk`, query),
};
